import 'dart:convert';

class VideoDTO {
  String videoName;
  int authorId;
  DateTime submitTime;
  bool isPublish;
  bool isDeleted;
  String tags;
  String description;
  String profile;

  VideoDTO(this.videoName, this.authorId, this.submitTime, this.isPublish,
      this.isDeleted, this.tags, this.description, this.profile);

  String toJson() =>
      jsonEncode({
        "videoName": videoName,
        "authorId": authorId,
        "submitTime": submitTime.toIso8601String(),
        "isPublished": isPublish,
        "isDeleted": isDeleted,
        "tags": tags,
        "description": description,
        "profile": profile
      });
}